package zhangmengna.service.impl;

import zhangmengna.dao.ZMNDao;
import zhangmengna.entity.Page;
import zhangmengna.entity.ZMNBJEntity;
import zhangmengna.entity.ZMNEntity;
import zhangmengna.service.ZMNService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("zmnService")
public class ZMNServiceImpl implements ZMNService {
    @Autowired
    ZMNDao zmnDao;
    @Override
    public List<ZMNEntity> queryPage(Page page, String name) {
        return zmnDao.queryPage(page,name);
    }
//添加
    @Override
    public void add(ZMNEntity zmnEntity) {
        zmnDao.add(zmnEntity);
    }
//
    @Override
    public int queryCount(String name) {
        return zmnDao.queryCount(name);
    }

    @Override
    public ZMNEntity edit(ZMNEntity zmnEntity) {
        return zmnDao.edit(zmnEntity);
    }

    @Override
    public void del(ZMNEntity zmnEntity) {
        zmnDao.del(zmnEntity);
    }

    @Override
    public List<ZMNBJEntity> clazz() {
        return zmnDao.clazz();
    }


}
